<template>
    <!-- 历史工程 -->
    <div class="history-project">
      <div class="history-project-top">
        <span class="history_project">历史工程</span>
        <i class="el-icon-close" @click="closeHistoryProject"></i>
      </div> 
      <div class="history-project-bottom">
        <div class="history-project-item">
          <el-checkbox v-model="layerChcked.project2003" fill="#60cdad" class="history-project-item-icon" @change="change2003">
            <i class="el-icon-document-copy"></i>
          </el-checkbox>
          <div class="history-project-item-text" @click="flyTo2003">
             2003年工程
          </div>
        </div>
        <div class="history-project-item">
          <el-checkbox v-model="layerChcked.project2009" fill="#60cdad" class="history-project-item-icon" @change="change2009">
            <i class="el-icon-document-copy"></i>
          </el-checkbox>
          <div class="history-project-item-text" @click="flyTo2009">
             2009年工程
          </div>
        </div>
        <div class="history-project-item">
          <el-checkbox v-model="layerChcked.project2019" fill="#60cdad" class="history-project-item-icon" @change="change2019">
            <i class="el-icon-document-copy"></i>
          </el-checkbox>
          <div class="history-project-item-text" @click="flyTo2019">
             2019年工程
          </div>
        </div>
        <div class="history-project-item">
          <el-checkbox v-model="layerChcked.project2023" fill="#60cdad" class="history-project-item-icon" @change="change2023">
            <i class="el-icon-document-copy"></i>
          </el-checkbox>
          <div class="history-project-item-text" @click="flyTo2023">
             本次工程
          </div>
        </div>
				<div class="history-project-item">
          <el-checkbox v-model="layerChcked.project" fill="#60cdad" class="history-project-item-icon" @change="changeBiaoZhu">
            <i class="el-icon-document-copy"></i>
          </el-checkbox>
          <div class="history-project-item-text" @click="flyToBiaoZhu">
             标注
          </div>
        </div>
      </div>
    </div>
</template>

<script>
import global from '@/views/Global.vue'
import coverage from '@/mixins/addcCoverages.js'
export default {
	props:['hiddenHistory'],
  mixins:[coverage],
	data() {
		return {
			// checkbox选择数据
      layerChcked:{
        project2003:false,
        project2009:false,
        project2019:false,
        project2023:false,
				project:false,
      },
      project2003:{
        longliang:[
          123.814484,41.336261,
          123.817151,41.337149,
          123.823495,41.338372,
          123.828087,41.339142,
          123.833652,41.340097,
          123.839252,41.340876,
          123.847002,41.34086,
          123.853748,41.340171,
          123.858128,41.339077,
          123.861341,41.338879,
          123.865547,41.340992,
          123.874099,41.344546,
          123.878895,41.348545,
          123.882436,41.355117,
          123.884684,41.359638,
          123.884487,41.361408,
        ],
        sanjiazi:[
          123.849833,41.337811,
          123.859471,41.336044,
          123.862219,41.336744,
          123.864272,41.337271,
          123.866203,41.337701,
          123.868204,41.33779,
          123.879544,41.344407,
          123.88903,41.355236,
          123.892309,41.3673,
        ],
        wolongHuiShui1:[
          123.846747,41.337954,
          123.847391,41.3339,
        ],
        wolongHuiShui2:[
          123.847772,41.33785,
          123.848698,41.334078,
        ],
        weiLanToFangXun:[
          123.828066,41.336593,
          123.832811,41.337297,
          123.837183,41.337994,
          123.841638,41.33823,
          123.84591,41.337952,
        ],
        str:['威宁桥至龙梁家山头段堤防','威宁拦河闸至三家子大桥段堤防','卧龙河回水堤','新建左岸威宁拦河闸至威龙桥段防汛路']
      },
      project2009:{
        wushui:[
          123.681542,41.2815,
          123.681424,41.28041,
          123.676318,41.274477,
          123.675166,41.273603,
          123.674432,41.271619,
          123.674104,41.269043,
          123.675347,41.268169,
          123.677044,41.267714,
          123.679416,41.267983,
          123.682015,41.268564,
        ],
        zhenghuishui:[
          123.687075,41.270983,
          123.69406,41.277377,
          123.69645,41.279649,
          123.708169,41.285263,
          123.711048,41.287407,
        ],
        zhengToYan:[
          123.688002,41.271232,
          123.695177,41.272877,
          123.700575,41.274068,
          123.709684,41.278362,
          123.72495,41.287408,
          123.73903,41.297423,
          123.745736,41.304185,
          123.747027,41.305645,
        ],
        tuanshanzi:[
          123.737234,41.29219,
          123.738802,41.291178,
          123.747694,41.298756,
        ],
        xihuHuishui:[
          123.771143,41.319281,
          123.770819,41.32087,
          123.769893,41.321722,
          123.764418,41.324285,
        ],
        tuanlanhe:[
          123.706703,41.273691,
          123.710475,41.275608,
        ],
        zhangjiaHuishui:[
          123.785232,41.310072,
          123.788797,41.308218,
          123.786906,41.307336,
        ],
        yaoToJin:[
          123.787973,41.3072,
          123.789097,41.307969,
          123.791144,41.307371,
          123.794783,41.306913,
        ],
        shendanTielu:[
          123.78191,41.314499,
          123.787158,41.312116,
          123.788854,41.311867,
          123.790698,41.310439,
          123.794311,41.309777,
          123.798279,41.310794,
          123.802735,41.312355,
          123.804928,41.315908,
        ],
        nanshahe:[
          123.811577,41.340068,
          123.813885,41.340649,
          123.821312,41.346792,
          123.821903,41.349122,
          123.821307,41.352062,
          123.818787,41.354144,
        ],
        danfuToWei:[
          123.809919,41.33423,
          123.811305,41.339299,
          123.814219,41.340227,
          123.821519,41.346444,
          123.822096,41.347736,
          123.822431,41.349995,
          123.821305,41.353072,
        ],
        str:['林家崴子污水处理厂至郑家河口下游段','郑家河回水堤','郑家河河口至衍水大桥','团山子至彩屯拦河闸段','溪湖河回水堤','团山子拦河闸','张家河回水堤','姚家拦河闸至合金沟口','沈丹铁路至小堡拦河闸','南沙河左岸回水堤','丹阜高速桥至威宁大桥']
      },
      project2019:{
        youcaitun:[
          123.771132,41.318931,
          123.767393,41.31714,
          123.76224,41.314508,
          123.759459,41.313404,
          123.757089,41.312176,
          123.755304,41.310244,
          123.754527,41.309613,
          123.752594,41.309062,
          123.752236,41.308936,
          123.749107,41.306362,
          123.747145,41.305518,
          123.744041,41.3016,
          123.735433,41.293881,
        ],
        youToWeiNing:[
          123.805215,41.321843,
          123.804221,41.325608,
          123.804883,41.327616,
          123.806143,41.331123,
          123.809702,41.333058,
          123.811397,41.333898,
          123.814838,41.336292,
        ],
        youanlaoguan:[
          123.884577,41.360285,
          123.890943,41.374505,
        ],        
        youanSanjia:[
          123.892216,41.378304,
          123.89505,41.379906,
          123.899075,41.38125,
          123.901988,41.381446,
        ],
        str:['右岸彩屯河口段护岸','右岸小堡拦河闸至威宁桥段护岸','右岸老官子水厂护岸','右岸三家子大桥段堤防'],
      },
      project2023:{
        zuoBenGang:[
          123.711474,41.275654,
          123.738859,41.293346,
        ],
        youYanToXi:[
          123.744885,41.303119,
          123.74833,41.306342,
          123.75516,41.311454,
          123.761978,41.314482,
          123.771017,41.318619,
        ],
        YouXiShangYou:[
          123.771113,41.319065,
          123.772677,41.31881,
          123.774654,41.317749,
        ],
        ZuoAnHuAn:[
          123.755361,41.30765,
          123.75934,41.310842,
          123.762907,41.313075,
          123.76683,41.315028,
          123.768105,41.315407,
          123.769747,41.315613,
          123.771827,41.315599,
          123.773846,41.315153,
        ],
        heHuiSHhui:[
          123.798035,41.307754,
        ],
        dayugouHuan:[
          123.805691,41.309922,
          123.805468,41.308902,
        ],
        zuogongyuanhuAn:[
          123.805402,41.311651,
          123.807342,41.314317,
          123.808295,41.316648,
          123.808236,41.321174,
        ],
        youxiaopuhuAn:[
          123.800195,41.311546,
          123.801163,41.311718,
          123.802894,41.312509,
          123.804218,41.313774,
          123.805065,41.315605,
          123.805319,41.318106,
          123.805176,41.320089,
          123.80559,41.321521,
        ],
        zuoDanFuToWeiHu:[
          123.809552,41.329862,
          123.811873,41.332317,
          123.814617,41.333998,
        ],
        str:['左岸本钢厂区护岸','右岸衍水大桥至溪湖桥段堤防','右岸溪湖河口上游段堤防及护岸','左岸爱之滩公园段护岸','合金沟回水堤','左岸峪溪桥下游段防洪墙及护岸，大峪沟回水段护岸','左岸小堡公园段护岸','右岸小堡拦河闸下游护岸','左岸丹阜高速至威宁桥段护岸']
      },
      biaozhu:{
        tuanlanhe:[123.710153,41.276238],
        huiguanqiao:[123.719895,41.281447],
        zhengjiaqiao:[123.722015,41.282999],
        tieluqiao:[123.734551,41.291834],
        sanshuilanhe:[123.736325,41.293472],
        caitunqiao:[123.742342,41.297782],
        caitunlanhe:[123.74526,41.300213],
        yanshuidaqiao:[123.748452,41.303581],
        xihudaqiao:[123.764809,41.315073],
        jiaxiantielu:[123.771701,41.317579],
        xihulanhe:[123.7741,41.316685,],
        laoyixian:[123.777004,41.315542,],
        xinyixian:[123.778975,41.31527],
        shendan:[123.78007,41.31413,],
        gushan:[123.786152,41.311494],
        yaojialanhe:[123.787452,41.310642,],
        yuxidaqiao:[123.803629,41.311864,],
        xiaopulanhe:[123.806701,41.321376],
        danfugaosu:[123.809122,41.331299],
        weiningdaqiao:[123.815056,41.335499],
        weininglanhe:[123.827555,41.337845,],
        weilongdaqiao:[123.84665,41.339418],
        sanjiaziqiao:[123.902473,41.38151],
        tuanlinshi :[123.71233,41.276536,],
        cailinshi:[123.727206,41.289184],
        str:['团山子拦河闸','本钢灰管桥','郑家大桥','本钢铁路桥','本钢三水潭拦河闸','彩屯大桥','彩屯拦河闸','衍水大桥','溪湖大桥','甲线铁路桥','溪湖拦河闸','老乙线铁路桥','新乙线铁路桥','沈丹铁路桥','孤山大桥','姚家拦河闸','峪溪大桥','小堡拦河闸','丹阜高速桥','威宁大桥','威宁拦河闸','威龙大桥','三家子大桥','团山子道口 临时封堵','彩屯河口 临时封堵']
      }
		};
	},
	mounted() {
		// this.showBiaoZhu()
	},
	methods: {
    /**
     * @brief 返回线坐标数组 
     * @points {Array} points 经纬度坐标数组
     * @return {Array} polyline位置坐标信息
     */
     getPointArr(points){
      let pointArr=new Cesium.CallbackProperty(()=>{
        return new Cesium.Cartesian3.fromDegreesArray(points)
      },false)
      return pointArr
    },
		// 关闭历史工程
		closeHistoryProject(){
			this.$emit('hiddenHistory');
		},
		// 03工程
		show2003(){
      const longliang = this.polyline('longliang',this.project2003.longliang,3,Cesium.Color.fromCssColorString('#00ff00'),true,999,true)
      const sanjiazi = this.polyline('sanjiazi',this.project2003.sanjiazi,3,Cesium.Color.fromCssColorString('#00ff00'),true,999,true)
      const wolongHuiShui1 = this.polyline('wolongHuiShui1',this.project2003.wolongHuiShui1,3,Cesium.Color.fromCssColorString('#00ff00'),true,999,true)
      const wolongHuiShui2 = this.polyline('wolongHuiShui2',this.project2003.wolongHuiShui2,3,Cesium.Color.fromCssColorString('#00ff00'),true,999,true)
    },
    remove2003(){
      // this.removeEntity('LLB')
      // this.removeEntity('bsjz')
      // this.removeEntity('zaBWLHSbg')
      // this.removeEntity('BZAWN')
      this.removeEntity('longliang')
      this.removeEntity('sanjiazi')
      this.removeEntity('wolongHuiShui1')
      this.removeEntity('wolongHuiShui2')
    },
    change2003(){
      if(!this.layerChcked.project2003){
        this.remove2003()
        return
      }
      this.show2003()
    },
    flyTo2003(){
      global.viewer.camera.flyTo({
        destination: Cesium.Cartesian3.fromDegrees(123.886128,41.348385, 11000)
      }) 
    },
    // 09工程
    show2009(){
      const wushui = this.polyline('wushui',this.project2009.wushui,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const zhenghuishui = this.polyline('zhenghuishui',this.project2009.zhenghuishui,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const zhengToYan = this.polyline('zhengToYan',this.project2009.zhengToYan,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const tuanshanzi = this.polyline('tuanshanzi',this.project2009.tuanshanzi,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const xihuHuishui = this.polyline('xihuHuishui',this.project2009.xihuHuishui,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const tuanlanhe = this.polyline('tuanlanhe',this.project2009.tuanlanhe,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const zhangjiaHuishui = this.polyline('zhangjiaHuishui',this.project2009.zhangjiaHuishui,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const yaoToJin = this.polyline('yaoToJin',this.project2009.yaoToJin,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const shendanTielu = this.polyline('shendanTielu',this.project2009.shendanTielu,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const nanshahe = this.polyline('nanshahe',this.project2009.nanshahe,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      const danfuToWei = this.polyline('danfuToWei',this.project2009.danfuToWei,3,Cesium.Color.fromCssColorString('#ff0000'),true,999,true)
      // // 文字
      // const ws = this.historyBillboard('ws',123.676318,41.274477,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[0],-120,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const zjhsd = this.historyBillboard('zjhsd',123.69406,41.277377,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[1],-80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const zjhkzysdq = this.historyBillboard('zjhkzysdq',123.700575,41.274068,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[2],-100,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const tszzct = this.historyBillboard('tszzct',123.738802,41.291178,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[3],80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const xhhhsd = this.historyBillboard('xhhhsd',123.770819,41.32087,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[4],-80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const tszlhz09 = this.historyBillboard('tszlhz09',123.706703,41.273691,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[5],60,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const zjhhsd = this.historyBillboard('zjhhsd',123.785232,41.310072,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[6],-80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const yjzhjg = this.historyBillboard('yjzhjg',123.789097,41.307969,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[7],80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const sdtl = this.historyBillboard('sdtl',123.788854,41.311867,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[8],-100,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const nshza = this.historyBillboard('nshza',123.821312,41.346792,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[9],-80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))
      // const dfgs = this.historyBillboard('dfgs',123.814219,41.340227,150,Cesium.Color.fromCssColorString('#8b0000'),5,2,true,50000,this.project2009.str[10],80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#8b0000'))

    },
    remove2009(){
      // this.removeEntity('ws')
      // this.removeEntity('zjhsd')
      // this.removeEntity('zjhkzysdq')
      // this.removeEntity('tszzct')
      // this.removeEntity('xhhhsd')
      // this.removeEntity('tszlhz09')
      // this.removeEntity('zjhhsd')
      // this.removeEntity('sdtl')
      // this.removeEntity('nshza')
      // this.removeEntity('dfgs')
      this.removeEntity('wushui')
      this.removeEntity('yjzhjg')
      this.removeEntity('zhenghuishui')
      this.removeEntity('zhengToYan')
      this.removeEntity('tuanshanzi')
      this.removeEntity('xihuHuishui')
      this.removeEntity('tuanlanhe')
      this.removeEntity('zhangjiaHuishui')
      this.removeEntity('yaoToJin')
      this.removeEntity('shendanTielu')
      this.removeEntity('nanshahe')
      this.removeEntity('danfuToWei')
    },
    change2009(){
      if(!this.layerChcked.project2009){
        this.remove2009()
        return 
      } 
      this.show2009()
    },
    flyTo2009(){},
    // 19工程
    show2019(){
      const youcaitun = this.polyline('youcaitun',this.project2019.youcaitun,3,Cesium.Color.fromCssColorString('#0000ff'),true,999,true)
      const youToWeiNing = this.polyline('youToWeiNing',this.project2019.youToWeiNing,3,Cesium.Color.fromCssColorString('#0000ff'),true,999,true)
      const youanlaoguan = this.polyline('youanlaoguan',this.project2019.youanlaoguan,3,Cesium.Color.fromCssColorString('#0000ff'),true,999,true)
      const youanSanjia = this.polyline('youanSanjia',this.project2019.youanSanjia,3,Cesium.Color.fromCssColorString('#0000ff'),true,999,true)

      // 文字
      // const yacthkha = this.historyBillboard('yacthkha',123.76224,41.314508,150,Cesium.Color.fromCssColorString('#00008b'),5,2,true,50000,this.project2019.str[0],-80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#00008b'))
      // const yaxplhz = this.historyBillboard('yaxplhz',123.804221,41.325608,150,Cesium.Color.fromCssColorString('#00008b'),5,2,true,50000,this.project2019.str[1],-100,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#00008b'))
      // const yalgz = this.historyBillboard('yalgz',123.884577,41.360285,150,Cesium.Color.fromCssColorString('#00008b'),5,2,true,50000,this.project2019.str[2],-80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#00008b'))
      // const yasjzdq = this.historyBillboard('yasjzdq',123.89505,41.379906,150,Cesium.Color.fromCssColorString('#00008b'),5,2,true,50000,this.project2019.str[3],-90,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#00008b'))
    },
    remove2019(){
      this.removeEntity('youcaitun')
      this.removeEntity('youToWeiNing')
      this.removeEntity('youanlaoguan')
      this.removeEntity('youanSanjia')
      // this.removeEntity('yacthkha')
      // this.removeEntity('yaxplhz')
      // this.removeEntity('yalgz')
      // this.removeEntity('yasjzdq')
    },
    change2019(){
      if(!this.layerChcked.project2019){
        this.remove2019()
        return 
      }
      this.show2019()
    },
    flyTo2019(){},
    // 23工程
    show2023(){
      const zuoanbengang = this.polyline('zuoanbengang',this.project2023.zuoBenGang,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const youanyanshuidaqiao = this.polyline('youanyanshuidaqiao',this.project2023.youYanToXi,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const youanxihuhekou = this.polyline('youanxihuhekou',this.project2023.YouXiShangYou,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const zuoanaizhitan = this.polyline('zuoanaizhitan',this.project2023.ZuoAnHuAn,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const hejingouhuishui = this.polyline('hejingouhuishui',this.project2023.heHuiSHhui,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const dayugouhuishui = this.polyline('dayugouhuishui',this.project2023.dayugouHuan,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const zuogongyuanhuan = this.polyline('zuogongyuanhuan',this.project2023.zuogongyuanhuAn,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const youxiahuan = this.polyline('youxiahuan',this.project2023.youxiaopuhuAn,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const danfuzhiweining = this.polyline('danfuzhiweining',this.project2023.zuoDanFuToWeiHu,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      const weiLanToFangXun = this.polyline('weiLanToFangXun',this.project2003.weiLanToFangXun,3,Cesium.Color.fromCssColorString('#00ffff'),true,999,true)
      // 文字
      // const zabg = this.historyBillboard('zabg',123.738859,41.293346,150,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[0],50,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
      // const yaysdq = this.historyBillboard('yaysdq',123.75516,41.311454,150,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[1],-100,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
      // const yaxhhk = this.historyBillboard('yaxhhk',123.772677,41.31881,150,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[2],-100,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
      // const zaazt = this.historyBillboard('zaazt',123.762907,41.313075,150,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[3],80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
      // const hjghsd = this.historyBillboard('hjghsd',123.798035,41.307754,100,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[4],-50,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
      // const dyghs = this.historyBillboard('dyghs',123.805468,41.308902,150,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[5],200,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
      // const zagyha = this.historyBillboard('zagyha',123.807342,41.314317,150,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[6],80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
      // const yxyha = this.historyBillboard('yxyha',123.802894,41.312509,150,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[7],-90,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
      // const dfgszwn = this.historyBillboard('dfgszwn',123.811873,41.332317,150,Cesium.Color.fromCssColorString('#008080'),5,2,true,50000,this.project2023.str[8],110,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#008080'))
    },
    remove2023(){
      this.removeEntity('zuoanbengang')
      this.removeEntity('youanyanshuidaqiao')
      this.removeEntity('youanxihuhekou')
      this.removeEntity('zuoanaizhitan')
      this.removeEntity('hejingouhuishui')
      this.removeEntity('dayugouhuishui')
      this.removeEntity('zuogongyuanhuan')
      this.removeEntity('youxiahuan')
      this.removeEntity('danfuzhiweining')
      this.removeEntity('weiLanToFangXun')  
      // this.removeEntity('zabg')
      // this.removeEntity('yaysdq')
      // this.removeEntity('yaxhhk')
      // this.removeEntity('zaazt')
      // this.removeEntity('hjghsd')
      // this.removeEntity('dyghs')
      // this.removeEntity('zagyha')
      // this.removeEntity('yxyha')
      // this.removeEntity('dfgszwn')
    },
    change2023(){
      if(!this.layerChcked.project2023){
        this.remove2023()
        return 
      }
      this.show2023()
    },
    flyTo2023(){},
    // 标注
    showBiaoZhu(){
      this.historyBillboard('tszlhz',this.biaozhu.tuanlanhe[0],this.biaozhu.tuanlanhe[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[0],-50,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('bghgq',this.biaozhu.huiguanqiao[0],this.biaozhu.huiguanqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[1],0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('zjdq',this.biaozhu.zhengjiaqiao[0],this.biaozhu.zhengjiaqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[2],0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('bgtlq',this.biaozhu.tieluqiao[0],this.biaozhu.tieluqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[3],0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('bgsstlhz',this.biaozhu.sanshuilanhe[0],this.biaozhu.sanshuilanhe[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[4],0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('ctdq',this.biaozhu.caitunqiao[0],this.biaozhu.caitunqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[5],0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('ctlh',this.biaozhu.caitunlanhe[0],this.biaozhu.caitunlanhe[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[6],0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('yanshuidaqiao',this.biaozhu.yanshuidaqiao[0],this.biaozhu.yanshuidaqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[7],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('xihudaqiao',this.biaozhu.xihudaqiao[0],this.biaozhu.xihudaqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[8],-20,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('jiaxiantielu',this.biaozhu.jiaxiantielu[0],this.biaozhu.jiaxiantielu[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[9],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('xihulanhe',this.biaozhu.xihulanhe[0],this.biaozhu.xihulanhe[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[10],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('laoyixian',this.biaozhu.laoyixian[0],this.biaozhu.laoyixian[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[11],-40,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('xinyixian',this.biaozhu.xinyixian[0],this.biaozhu.xinyixian[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[12],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('shendan',this.biaozhu.shendan[0],this.biaozhu.shendan[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[13],40,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('gushan',this.biaozhu.gushan[0],this.biaozhu.gushan[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[14],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('yaojialanhe',this.biaozhu.yaojialanhe[0],this.biaozhu.yaojialanhe[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[15],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('yuxidaqiao',this.biaozhu.yuxidaqiao[0],this.biaozhu.yuxidaqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[16],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('xiaopulanhe',this.biaozhu.xiaopulanhe[0],this.biaozhu.xiaopulanhe[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[17],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('danfugaosu',this.biaozhu.danfugaosu[0],this.biaozhu.danfugaosu[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[18],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('weiningdaqiao',this.biaozhu.weiningdaqiao[0],this.biaozhu.weiningdaqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[19],-20,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('weininglanhe',this.biaozhu.weininglanhe[0],this.biaozhu.weininglanhe[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[20],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('weilongdaqiao',this.biaozhu.weilongdaqiao[0],this.biaozhu.weilongdaqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[21],-20,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('sanjiaziqiao',this.biaozhu.sanjiaziqiao[0],this.biaozhu.sanjiaziqiao[1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[22],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('tuanlinshi',this.biaozhu.tuanlinshi [0],this.biaozhu.tuanlinshi [1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[23],80,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
      this.historyBillboard('cailinshi',this.biaozhu.cailinshi [0],this.biaozhu.cailinshi [1],100,Cesium.Color.fromCssColorString('#ff8c00'),5,2,true,50000,this.biaozhu.str[24],-0,-20,'30px Helvetica',Cesium.Color.fromCssColorString('#ff8c00'))
    },
    removeBiaoZhu(){
      this.removeEntity('tszlhz')
      this.removeEntity('bghgq')
      this.removeEntity('zjdq')
      this.removeEntity('bgtlq')
      this.removeEntity('bgsstlhz')
      this.removeEntity('ctdq')
      this.removeEntity('ctlh')
      this.removeEntity('yanshuidaqiao')
      this.removeEntity('xihudaqiao')
      this.removeEntity('jiaxiantielu')
      this.removeEntity('xihulanhe')
      this.removeEntity('laoyixian')
      this.removeEntity('xinyixian')
      this.removeEntity('shendan')
      this.removeEntity('gushan')
      this.removeEntity('yaojialanhe')
      this.removeEntity('yuxidaqiao')
      this.removeEntity('xiaopulanhe')
      this.removeEntity('danfugaosu')
      this.removeEntity('weiningdaqiao')
      this.removeEntity('weininglanhe')
      this.removeEntity('weilongdaqiao')
      this.removeEntity('sanjiaziqiao')
      this.removeEntity('tuanlinshi')
      this.removeEntity('cailinshi')
    },
    changeBiaoZhu(){
      if(!this.layerChcked.project){
        this.removeBiaoZhu()
        return
      }
      this.showBiaoZhu()
    },
    flyToBiaoZhu(){},
	},
}
</script>

<style scoped lang="less">
.history-project{
  position: absolute;
  top:26vh;
  left: 6vw;
  z-index: 99;
  width: 12vw;
  height: 27vh;
  border: 2px solid #60cdad;
  background-color:rgba(0, 0, 0, .3);

  .history-project-top{
    padding: 0 1vh 0 1vh;
    color: #60cdad;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #60cdad;
    FONT-WEIGHT: 200;
    font-size: 1.6vh;
    height: 4vh;
		.el-icon-close{
			cursor: pointer;
		}
  }
  .history-project-bottom{
    overflow-y: auto;
    margin-top: 2.5vh;
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, alpha);
    align-items: flex-start;
    .history-project-item{
      display: flex;

      .history-project-item-icon{
        color: #fff;
        margin-left: 1.5vw;
        margin-bottom: 1vh;
      }
      .history-project-item-text{
        font-size: 1.5vh;
        color: #fff;
        margin-left: 0.5vh;
        cursor: pointer;
        text-align: left
      }
    }
  }
}
</style>